﻿using NHibernate.Mapping.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceZero.DataStore.Models
{
    /// <summary>
    /// guid ,使用新的System.Guid实例作为标示符。
    /// </summary>
    [Class(Table = "IceZeroTest_GuidMode")]
    public class GuidModeModel 
    {
        [Id(0, Name = "Id", TypeType = typeof(string),Length = 36)]
        [Key(1)]
        [Generator(2, Class = "guid")]
        public virtual Guid Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Property(Column = "CreateTime", TypeType = typeof(DateTime))]
        public virtual DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 备注
        /// </summary>
        [Property(Column = "Remark", TypeType = typeof(string), Length = 1000)]
        public virtual string Remark { get; set; }
    }
}
